package cn.xdd.entity;

import java.util.List;

/**
 * @author user_xdd
 * @Date 2022-03-27 13:58
 * @description User对象和Token对象的集合
 * @return
 */
public class UserAndToken {
    User user;
    List<RoleAndToken> tokens;

    public UserAndToken(User user, List<RoleAndToken> tokens) {
        this.user = user;
        this.tokens = tokens;
    }

    public UserAndToken() {
    }

    @Override
    public String toString() {
        return "UserAndToken{" +
                "user=" + user +
                ", tokens=" + tokens +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<RoleAndToken> getTokens() {
        return tokens;
    }

    public void setTokens(List<RoleAndToken> tokens) {
        this.tokens = tokens;
    }
}
